package com.sense.kukoo.biz_me.vm

import com.sense.kukoo.common.mvvm.model.BaseMvvmModel
import com.sense.kukoo.common.mvvm.vm.BaseViewModel
import com.sense.kukoo.lib_logger.LoggerManager

class AboutViewModel:BaseViewModel() {

    private val TAG: String = javaClass.simpleName

    private var mClickCount = 1
    private var mClickTime = 0L

    override fun createModel(): BaseMvvmModel? {
        return null
    }

    override fun initData() {}

    fun onIconClick(){
        val currentTimeMillis = System.currentTimeMillis()
        val time = currentTimeMillis - mClickTime
        if(time < 400){
            mClickCount++
        }else{
            mClickCount = 1
        }
        mClickTime = currentTimeMillis

        LoggerManager.e("mClickCount = ${mClickCount}")

        if(mClickCount > 6){
            LoggerManager.e("mmmmmmmmmmClickCount > 6")
        }
    }
}